package com.zyht.website.service;

import java.util.List;

import com.wx.entity.SysRole;
import com.zyht.website.entity.SysUser;
import com.zyht.website.entity.SysUserExample;

public interface SysUserService {
	public int insert(SysUser user);

	public List<SysUser> selectByExample(SysUserExample example);
	
	public SysUser selectBySysUserName(String username);
	
	public SysUser selectByMobile(String mobile);

	public SysUser selectByPrimaryKey(Integer id);

	public int countByExample(SysUserExample example);

	public int updateByExample(SysUser record,SysUserExample example);

	public int updateByPrimaryKey(SysUser record);
	
	public int deleteByPrimaryKey(Integer id);

	public int deleteByPrimaryKey(SysUserExample example);
	
	public SysUser isPhoneExist(String mobile);

	public int addSysUser(String username, Integer roleId, String status,Integer orgId);

	public int updateSysUser(String username, Integer roleId, String status, Integer id,Integer orgId);
	
	public List<SysRole> findRoleByUserId(Integer id);

	public List<Integer> findRoleIdByUserId(Integer userid);
}
